<template>
  <div>
    <h2>Cart</h2>
  </div>
</template>

<script setup>

import axios from 'axios';

const request = axios.create({
  baseURL: 'http://localhost:8081/api/3001',
});
//'http://localhost:8081/api/3001/user',
//'http://127.0.0.1:3001/api/3001/user',
//'http://127.0.0.1:3001/user',
request.get('/user').then((res) => {
  console.log(res.data);
}).catch((err) => {
  console.log(err.message);
});

</script>